import App from './App'
import layout from "./pages/layout/layout.vue"
import appTitle from "./component/app-title/app-title.vue"
import detailHead from "component/detail-head/detail-head.vue"
import appBanner from './component/app-banner/app-banner.vue'
import numberKeyboard from './component/key-board/key-board.vue'
import uView from "uview-ui";
Vue.use(uView);
import {
	showErr,
	getUserinfo,
	copyText,
	openPopup,
	closePopup,
	popupToggle,
	switchTab,
	navigateTo,
	navigateBack,
	updateUserinfo,
	onConfirmclick
} from './utils/utils.js'

// #ifndef VUE3

import Vue from 'vue'
Vue.component("app-layout", layout)
Vue.component("app-title", appTitle)
Vue.component("app-banner", appBanner)
Vue.component("detail-head", detailHead)
Vue.component("numberKeyboard", numberKeyboard)

Vue.prototype.$tool = {
	showErr,
	getUserinfo,
	copyText,
	openPopup,
	closePopup,
	popupToggle,
	switchTab,
	navigateTo,
	navigateBack,
	updateUserinfo,
	onConfirmclick
}

Vue.prototype.config = {
	sale_btn: false,
	bazaar_page: true,
	topup_btn: false,
	withdraw_btn: false,
	isOpenRank: false,
	isOpenComposite: false,
}

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
